package com.ziytek.web.citizen.model.rsp;

import com.ziytek.web.citizen.constant.ServerConstant;
import com.ziytek.web.citizen.model.bean.IssuedIngSettings;
import lombok.Data;

/**
 * @author fenghx
 * @version v1.0
 * @className ChargeControlSetResponse
 * @descripton 分容柜正在执行的工步设置查询接口返回
 * @date 2023/4/28 13:33
 **/
@Data
public class ExecutingStepQueryRsp {

    /**
     * 返回编码
     */
    private String retCode;

    /**
     * 编码描述
     */
    private String retMsg;

    private IssuedIngSettings issuedIngSettings;

    /**
     * 对应工步方案主键ID
     */
    private Long stepId;

    public void error() {
        this.retCode = ServerConstant.ERROR;
        this.retMsg = ServerConstant.ERROR_MSG;
    }

    public void error(String msg) {
        this.retCode = ServerConstant.ERROR;
        this.retMsg = msg;
    }

    public void success() {
        this.retCode = ServerConstant.SUCCESS;
        this.retMsg = ServerConstant.SUCCESS_MSG;
    }
}
